package com.yohann.eduorder.client;

import com.yohann.commonutils.vo.MemberOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("ucenter-service")
public interface UcenterClient {
    /**
     * 通过id获取用户信息
     * @param id
     * @return
     */
    @GetMapping("/ucenter-service/getMemberInfo/{id}")
    public MemberOrderVo getMemberInfo(@PathVariable("id") String id);
}
